| POST | /api/4PSBC/ImportContactpersoon |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
/**
* Import bedrijf record vanuit 4PS
*/
@Api(Description="Import bedrijf record vanuit 4PS")
open class IDB_4PSBC_Import_ContactPerson
{
/**
* Message header
*/
@ApiMember(Description="Message header", IsRequired=true)
var Header:Header? = null
/**
* Message data
*/
@ApiMember(Description="Message data", IsRequired=true)
var Data:Data_ContactPerson? = null
}
open class Header
{
/**
* Inhoud van het bericht
*/
@ApiMember(Description="Inhoud van het bericht")
var Contains:String? = null
/**
* Datum aanmaak bericht
*/
@ApiMember(Description="Datum aanmaak bericht")
var Date:String? = null
/**
* ID voor het bericht
*/
@ApiMember(Description="ID voor het bericht")
var MessageID:String? = null
/**
* Verzender van het bericht
*/
@ApiMember(Description="Verzender van het bericht")
var Sender:String? = null
}
open class Data_ContactPerson
{
var systemId:UUID? = null
var digiOfficeId:UUID? = null
var companyName4ps:String? = null
var no:String? = null
var crmCompanyId:UUID? = null
var crmPersonId:UUID? = null
var jobTitle:String? = null
var phoneNo:String? = null
var mobilePhoneNo:String? = null
var eMail:String? = null
var companyId:UUID? = null
var blocked:Boolean? = null
}
open class IDB_4PSBC_Response_ContactPerson
{
/**
* Header of the response
*/
@ApiMember(Description="Header of the response", IsRequired=true)
var Header:Header? = null
/**
* Response body
*/
@ApiMember(Description="Response body", IsRequired=true)
var Response:Response_ContactPerson? = null
}
open class Response_ContactPerson
{
/**
* Reponse status (Ok/Error)
*/
@ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
var Status:String? = null
/**
* Errors summary
*/
@ApiMember(Description="Errors summary")
var Errors:String? = null
/**
* ID of the contactperson in DigiOffice
*/
@ApiMember(Description="ID of the contactperson in DigiOffice", IsRequired=true)
var DigiOfficeContactPersonID:String? = null
/**
* GlobalID (digiOfficeId) of the contactperson in DigiOffice
*/
@ApiMember(Description="GlobalID (digiOfficeId) of the contactperson in DigiOffice", IsRequired=true)
var DigiOfficeGlobalID:UUID? = null
}
Kotlin IDB_4PSBC_Import_ContactPerson DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/4PSBC/ImportContactpersoon HTTP/1.1
Host: kpm_digiofficeapigateway.tbi.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Data":{"systemId":"00000000-0000-0000-0000-000000000000","digiOfficeId":"00000000-0000-0000-0000-000000000000","companyName4ps":"String","no":"String","crmCompanyId":"00000000-0000-0000-0000-000000000000","crmPersonId":"00000000-0000-0000-0000-000000000000","jobTitle":"String","phoneNo":"String","mobilePhoneNo":"String","eMail":"String","companyId":"00000000-0000-0000-0000-000000000000","blocked":false}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Response":{"Status":"String","Errors":"String","DigiOfficeContactPersonID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}